<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>


<body>
<table width="100%" border="1">
<c:if test="${!empty list && param.areaCode != ''}">
 <tr>
    <td class="nohover" colspan="10">
    <input class="buttondownload" type="button" value="下载" onclick="window.location.href='<%=request.getContextPath()%>/BackPayStatistics.do?method=xls&areaCode=${param.areaCode}&syear=${param.syear}&smonth=${param.smonth}&eyear=${param.eyear}&emonth=${param.emonth}'">
    <input class="buttonzhutu" type="button" value="柱图" onclick="window.location.href='<%=request.getContextPath()%>/BackPayStatistics.do?method=pic&areaCode=${param.areaCode}&syear=${param.syear}&smonth=${param.smonth}&eyear=${param.eyear}&emonth=${param.emonth}'">
    <input class="buttonbingtu" type="button" value="饼图" onclick="window.location.href='<%=request.getContextPath()%>/BackPayStatistics.do?method=piePic&areaCode=${param.areaCode}&syear=${param.syear}&smonth=${param.smonth}&eyear=${param.eyear}&emonth=${param.emonth}'">
    </td>
 </tr>
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>甘肃省企业欠薪情况按企业经济类型统计表</b>
    </td>
 </tr>
  <tr>
    <td width="50" align="center">序号</td>
    <td width="180">单位经济类型</td>
    <td width="180">欠薪企业数</td>
    <td width="180">欠薪人数</td>
    <td width="180">所欠金额</td>
    <td width="200">欠薪企业占全部企业的％</td>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <c:set var="num" scope="page" value="${num + 1}"/>
  <c:set var="v1" scope="page" value="${v1 + prod[2]}"/>
  <c:set var="v2" scope="page" value="${v2 + prod[3]}"/>
  <c:set var="v3" scope="page" value="${v3 + prod[4]}"/>
  <c:set var="v4" scope="page" value="${v4 + prod[5]}"/>
  <c:set var="v5" scope="page" value="${v5 + prod[5]}"/>
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${lineInfo.count}</td>
    <td><c:if test="${prod[1]==null || prod[1] == ''}">0</c:if>${prod[1]}</td>
    <td><c:if test="${prod[2]==null || prod[2] == ''}">0</c:if>${prod[2]}</td>
    <td><c:if test="${prod[3]==null || prod[3] == ''}">0</c:if>${prod[3]}</td>
    <td><c:if test="${prod[4]==null || prod[4] == ''}">0</c:if>${prod[4]}</td>
    <td><c:if test="${prod[5]==null || prod[5] == '' || prod[5] == '0'}">0</c:if>
        <c:if test="${prod[5]!=null && prod[5] != '' && prod[5] != '0'}">${prod[2]/prod[5]*100}</c:if>%
    </td>
  </tr>
  </c:forEach>
  <tr>
    <td>总计</td>
    <td></td>
    <td>${v1}</td>
    <td>${v2}</td>
    <td>${v3}</td>
    <td><c:if test="${v5==null || v5 == '' || v5 == '0'}">0</c:if>
    <c:if test="${v5!=null && v5 != '' && v5 != '0'}">${v1/v5*100}</c:if>%
    </td>
  </tr>
</c:if>
<c:if test="${empty list || param.areaCode == ''}">
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>请选择统计条件！</b>
    </td>
 </tr>
</c:if>
</table>
</body>
</html>
